package cn.wen.yinxiu.system.dao;

import cn.wen.yinxiu.system.entity.ActivityEntity;
import cn.wen.yinxiu.system.vo.ActivityListVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName: ActivityDao
 * @Author 小飞
 * @Email coderwen22@163.com
 * @Date 2023-05-22 09:46:50
 * @Description: 的Dao层
 */
@Mapper
@Component
public interface ActivityDao extends BaseMapper<ActivityEntity> {

    /**
     * 获取指定年月的每天的活动
     *
     * @param currentDay
     * @param status
     * @param isDeleted
     * @return
     */
    List<ActivityListVO> getActivityMonthList(@Param("currentDay") String currentDay,
                                              @Param("status") Integer status,
                                              @Param("isDeleted") Integer isDeleted);

}
